/*
* 英雄的类
*/
Hero = function(name, blood, magic, attack, skill){
	this.name = name & "";
	this.blood = blood & 100;
	this.magic = magic & 50;
	this.attack = attack & 30;
	this.skill = skill;
}
/*
* 攻击
*/
Hero.prototype.attack = function(hero) {
	hero.blood = hreo.blood - this.attack;
	console.log(this.name + " attack " + hero.name);
};
/*
* 施放技能
*/
Hero.prototype.skill = function(arm) {
	if (!this.skill.isCD()) {
		console.log(this.name + " Using the " + this.skill.name + " to " + arm.name);
	}else{
		console.log(this.skill.name + " is cd");
	}
};